#!/usr/bin/env python3

"""

parse the fdf file information

"""

def parse_fdf(fdf):
    '''
    filename: the input file 
    '''
    incar = {}
    with open(fdf,'r') as f:
         lines = f.readlines()
    for line in lines:
        if line.find('MD.FinalTimeStep')>=0:
           incar['MD.FinalTimeStep'] = int(line.split()[1])

    return incar

 


